import Vue from 'vue'

export const clearHttpRequestingList = () => {
  if (Vue.$httpRequestList && Vue.$httpRequestList.length > 0) {
    Vue.$httpRequestList.forEach(item => {
      for (let key in item) {
        item[key]()
      }
    })
    Vue.$httpRequestList = []
  }
}
